<?php
    // +----------------------------------------------------------------------
    // | shop模型
    // +----------------------------------------------------------------------
    // | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
    // +----------------------------------------------------------------------
    // | Author: 微尘 <yicmf@qq.com>
    // +----------------------------------------------------------------------
    namespace app\model\store;

    class OrderAddress extends Common
    {


        //获取器
        public function getDistrictTextAttr($value, $data)
        {
            return implode('-', json_decode($data['district'], true));
        }

        public function order()
        {
            return $this->belongsTo(Order::class);
        }

        public function expressCompany()
        {
            return $this->belongsTo(ExpressCompany::class);
        }


    }
